var t = require;
var e = module;
var o = exports;
var n =
    (this && this.__spreadArrays) ||
    function() {
        for (var t = 0, e = 0, o = arguments.length; e < o; e++) t += arguments[e].length;
        var n = Array(t),
            r = 0;
        for (e = 0; e < o; e++)
            for (var a = arguments[e], i = 0, s = a.length; i < s; i++, r++) n[r] = a[i];
        return n;
    };
Object.defineProperty(o, "__esModule", { value: !0 });
var r = t("JieriHuodongBtn"),
    a = t("TanchuangHuodong"),
    i = t("TanchuangHuodongBtn"),
    s = t("QiriHongbaoJump"),
    c = t("QiriHongbao"),
    l = t("QiriHongbaoBtn"),
    u = t("Const"),
    p = t("Base64Util"),
    f = t("BottomCPBs"),
    d = t("CPBIcon"),
    h = t("Delays"),
    y = t("EnterFrames"),
    g = t("Grid9CPB"),
    v = t("LoadingInfos"),
    M = t("Sounds"),
    k = t("TableRules"),
    B = t("Toast"),
    j = t("Waterfall"),
    F = require("./开始CPB"),
    T = t("WatchVideo"),
    N = t("Prefabs"),
    E = t("Popups"),
    L = t("UserStorage"),
    V = require("./侧拉抽屉"),
    U = t("Atlas"),
    z = t("FakeFriend"),
    K = t("FriendHelp"),
    X = t("Files"),
    Z = t("ClickClick"),
    $ = t("GameHints"),
    tt = t("WX"),
    et = t("BootConst"),
    ot = t("DD"),
    nt = t("Scores"),
    at = t("RewardBanner"),
    it = t("Tweens"),
    st = t("Effects"),
    ct = t("GiftCode"),
    lt = t("AVM1"),
    ut = t("ConfS"),
    pt = t("DatasPrep"),
    yt = t("PlatformCtrlMini4399"),
    gt = (function() {
        function t() {}
        return (
            (t.CPA打开成功给金币 = function() {
                return ut.DatasManager.CPA打开成功给金币[
                    this.CPA打开成功给金币Index < ut.DatasManager.CPA打开成功给金币.length - 1 ?
                    ++this.CPA打开成功给金币Index :
                    ut.DatasManager.CPA打开成功给金币.length - 1
                ];
            }),
            (t.init = function(e, o, n, r, a, i, s, l, p, f, d) {
                for (var g = this, j = -1, F = "", V = 0, z = u.default.coms; V < z.length; V++) {
                    j++, z[V] || (F += u.default.comNames[j] + "\n");
                }
                switch (
                    (F && console.error("缺组件：\n" + F),
                        (this.userStorage = new L.default()),
                        this.userStorage.init2(u.default.gameName + "_UserStorage" + u.default.storageTime),
                        (t.local_userStorageTimes = t.userStorage.times),
                        this.userStorage.A)
                ) {
                    case "A":
                    case "B":
                        break;
                    default:
                        this.userStorage.A = Math.random() < 0.5 ? "A" : "B";
                }
                ot.default.setA("A" == this.userStorage.A),
                    (this.delays = new h.default()),
                    (this.enterFrames = new y.default()),
                    (this.tweens = new it.default());
                var K,
                    Z = function() {
                        g.delays.delay({
                            time: 60,
                            action: function() {
                                t.platformCtrl.dd(et.dd.heartbeat), Z();
                            }
                        });
                    };
                if (
                    (Z(),
                        nt.scores.init(),
                        (this.container = e),
                        window.platformType ?
                        (this.platformType = window.platformType) :
                        ((this.platformType = "4399小游戏"), (window.startTime = new Date().getTime())),
                        (this.loadingName = a.node.name),
                        (this.gameName = l),
                        (this.cdnNames = u.default.cdnNamess[this.platformType]),
                        this.cdnNames && this.cdnNames.length)
                ) {
                    K = [];
                    for (var tt = 0, at = u.default.bundleNames; tt < at.length; tt++) {
                        var ct = at[tt];
                        this.cdnNames.includes(ct) || K.push(ct);
                    }
                } else(this.cdnNames = null), (K = u.default.bundleNames);
                switch (
                    ((this.n2n_p0 = new cc.Vec2(0, 0)),
                        (this.n2n_p100 = new cc.Vec2(100, 0)),
                        (this.n2n_tmp = new cc.Vec2()),
                        (this.n2n_out = new cc.Vec2()),
                        (this.胜利视频倍数Index = -1),
                        (this.胜利宝箱Index = -1),
                        (this.CPA打开成功给金币Index = -1),
                        (this.prefabs = this.container.getComponent(N.default)),
                        (this.atlas = this.prefabs.instantiate("atlas").getComponent(U.default)),
                        this.container.addChild(this.atlas.node),
                        this.container.addChild((this.area100 = this.prefabs.instantiate("Area100"))),
                        (this.popups = this.prefabs.instantiate("Popups").getComponent(E.Popups)),
                        this.container.addChild(this.popups.node),
                        (this.toast = this.prefabs.instantiate("Toast").getComponent(B.default)),
                        this.container.addChild(this.toast.node),
                        this.toast.init(),
                        (this.oks = new Array()),
                        (this.onInitComplete = f),
                        (this.剩余资源加载完毕 = d),
                        (this.loadingInfos = this.prefabs.instantiate("LoadingInfos").getComponent(v.default)),
                        this.container.addChild(this.loadingInfos.node),
                        this.loadingInfos.init(a),
                        (this.loadingInfos.node.x = -1e4),
                        (this.gameHints = new $.default()),
                        this.gameHints.init(o),
                        this.platformType)
                ) {
                    case "调试":
                        (this.platformCtrl = new D.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbTapTap.json");
                        break;
                    case "微信小游戏":
                        (this.platformCtrl = new R.default()),
                        (this.platformCtrl.subpackageNames = K),
                        u.default.mjAppKey ?
                            this.platformCtrl.getCPAConfigURL12(u.default.mjAppKey) :
                            (this.platformCtrl.cpbConfigURL =
                                u.default.url_prefix_web + "cpb" + u.default.cpaVersion + ".json");
                        break;
                    case "QQ小程序":
                        (this.platformCtrl = new O.default()),
                        (this.platformCtrl.subpackageNames = K),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbQQ.json");
                        break;
                    case "红包QQ":
                        (this.platformCtrl = new P.default()),
                        (this.platformCtrl.subpackageNames = K),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbQQ.json");
                        break;
                    case "百度小游戏":
                        (this.platformCtrl = new _.default()),
                        (this.platformCtrl.subpackageNames = K),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbBD.json");
                        break;
                    case "抖音小游戏":
                        (this.platformCtrl = new A.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbDY.json");
                        break;
                    case "UCH5":
                        this.platformCtrl = new x.default();
                        break;
                    case "4399小游戏":
                        this.platformCtrl = new yt.default();
                        break;
                    case "梦工厂小游戏":
                        (this.platformCtrl = new b.default()),
                        (this.platformCtrl.subpackageNames = K),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbWX.json");
                        break;
                    case "快手小游戏":
                        (this.platformCtrl = new rt.default()), (this.platformCtrl.subpackageNames = K);
                        break;
                    case "OPPO小游戏":
                        (this.platformCtrl = new w.default()),
                        (this.platformCtrl.subpackageNames = K),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbOPPO.json");
                        break;
                    case "VIVO小游戏":
                        (this.platformCtrl = new I.default()), (this.platformCtrl.subpackageNames = K);
                        break;
                    case "华为快游戏":
                        (this.platformCtrl = new Q.default()),
                        (this.platformCtrl.subpackageNames = K),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbHuawei.json");
                        break;
                    case "Native0":
                        (this.platformCtrl = new ht.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbTapTap.json");
                        break;
                    case "AdTiming":
                        this.platformCtrl = new m.default();
                        break;
                    case "OHaYoo":
                        this.platformCtrl = new C.default();
                        break;
                    case "OHaYoo海外":
                        this.platformCtrl = new dt.default();
                        break;
                    case "TapTap":
                        (this.platformCtrl = new S.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbTapTap.json");
                        break;
                    case "Tencent":
                        this.platformCtrl = new H.default();
                        break;
                    case "233乐园":
                        (this.platformCtrl = new G.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbLY233.json");
                        break;
                    case "小米":
                        (this.platformCtrl = new q.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbXiaomi.json");
                        break;
                    case "4399":
                        (this.platformCtrl = new Y.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpb4399.json");
                        break;
                    case "快手App":
                        this.platformCtrl = new ft.default();
                        break;
                    case "OPPOApp":
                        (this.platformCtrl = new J.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbOPPOApp.json");
                        break;
                    case "VIVOApp":
                        (this.platformCtrl = new W.default()),
                        (this.platformCtrl.cpbConfigURL = u.default.url_prefix_cpb + "cpbVIVOApp.json");
                        break;
                    default:
                        console.error("未知平台：" + this.platformType);
                }
                (this.platformCtrl.languageKey = this.platformCtrl.defaultLanguageKey),
                u.default.显示分享 || (this.platformCtrl.显示分享 = !1),
                    this.platformCtrl.显示公司名 ?
                    this.setLabels(
                        n,
                        (window.companyNamePrefix ? window.companyNamePrefix + " " : "") +
                        "奇妙森林网络技术（北京）有限公司",
                        "Wonder Forest Network Technology (Beijing) Co., Ltd."
                    ) :
                    (n.active = !1),
                    u.default.wid0 > u.default.hei0 ?
                    this.setLabels(
                        r,
                        "抵制不良游戏，拒绝盗版游戏。注意自我保护，谨防受骗上当。适度游戏益脑，沉迷游戏伤身。合理安排时间，享受健康生活。"
                    ) :
                    this.setLabels(
                        r,
                        "抵制不良游戏，拒绝盗版游戏。注意自我保护，谨防受骗上当。\n适度游戏益脑，沉迷游戏伤身。合理安排时间，享受健康生活。"
                    ),
                    (window.DD = ot.default),
                    (window.Const = u.default),
                    (window.Platforms = this),
                    (window.platformCtrl = this.platformCtrl),
                    (window.TableRules = k.TableRules),
                    (window.DatasManager = ut.DatasManager),
                    (window.DatasPrep = pt.DatasPrep),
                    (window.UserStorage = this.userStorage),
                    this.居中();
                var lt = function() {
                        g.platformCtrl.initShares(),
                            g.userStorage.fix(),
                            v.default.start("加载存档"),
                            g.platformCtrl.getStore(function() {
                                v.default.end("加载存档"),
                                    g.ok("store"),
                                    g.local_userStorageTimes > 0 || g.online_userStorageTimes > 0 ?
                                    g.加载剩余资源(function() {
                                        g.ok("老玩家剩余资源已到位");
                                    }) :
                                    g.ok("新玩家不用等待剩余资源"),
                                    g.platformCtrl.各种东西都加载完了(),
                                    T.default.init(),
                                    g.居中(),
                                    k.TableRules.init(),
                                    g.popups.init(),
                                    ut.DatasManager.红包 &&
                                    g.platformCtrl.获取今天的红包配置信息(function() {
                                        t.popups.getPopup(c.QiriHongbao).refresh(),
                                            t.七日红包按钮 && t.七日红包按钮.refresh();
                                    }),
                                    g.platformCtrl.checkUpdate();
                            });
                    },
                    gt = function() {
                        var t = g.getBundleNames(u.default.bundleNames, !1),
                            e = function() {
                                g.ok("bundles"),
                                    g.loadDirs(p, cc.AudioClip, function(t) {
                                        M.Sounds.init(t), g.ok("sounds");
                                    });
                                var t = cc.assetManager.getBundle("1st");
                                t.load("datas", function(e, o) {
                                    ut.ConfS.init(o.json),
                                        pt.DatasPrep.init(),
                                        g.ok("datas"),
                                        g.check(["platformCtrl", "datas"], lt),
                                        t.release("datas");
                                });
                            };
                        t ? g.loadBundles(t, e) : e();
                    };
                this.platformCtrl.init(function() {
                        g.ok("platformCtrl"), g.check(["platformCtrl", "cdn"], gt), g.check(["platformCtrl", "datas"], lt);
                    }),
                    k.TableRules.init(),
                    k.TableRules.show(this.container, "初始"),
                    k.TableRules.show(a.node, a.node.name),
                    v.default.start("加载CDN");
                var vt = function() {
                    v.default.end("加载CDN"), g.ok("cdn"), g.check(["platformCtrl", "cdn"], gt);
                };
                this.cdnNames ? X.Files.loadCDN(u.default.加载完所有CDN资源再进游戏, vt) : vt(),
                    v.default.start("显示封面", window.startTime),
                    v.default.start("初始化");
                var mt = e.getChildByName("black1"),
                    _t = e.getChildByName("black2");
                mt.destroy(),
                    _t.destroy(),
                    this.loadDirs("1st/platforms/effects/", cc.EffectAsset, function(t) {
                        st.default.init(t);
                    }),
                    (this.adjustLoadingInfos = function() {
                        g.p0n2n(a.bar, g.container),
                            (g.loadingInfos.node.x = g.n2n_out.x + i),
                            (g.loadingInfos.node.y = g.n2n_out.y + s);
                    }),
                    v.default.end("显示封面"),
                    this.adjustLoadingInfos();
            }),
            (t.getBundleNames = function(t, e) {
                if (t && t.length) {
                    var o = new Array();
                    if (e)
                        for (var n = 0, r = t; n < r.length; n++) {
                            var a = r[n];
                            u.default.剩余资源.includes(a) && o.push(a);
                        }
                    else
                        for (var i = 0, s = t; i < s.length; i++) {
                            a = s[i];
                            u.default.剩余资源.includes(a) || o.push(a);
                        }
                    if (o.length) return o;
                }
                return null;
            }),
            (t.loadBundles = function(t, e) {
                if (t.length)
                    for (
                        var o = function(t, e) {
                                v.default.start("加载资源包" + t),
                                    cc.assetManager.loadBundle(t, function(o, n) {
                                        v.default.end("加载资源包" + t), e();
                                    });
                            },
                            n = t.length,
                            r = 0,
                            a = t; r < a.length; r++
                    ) {
                        o(a[r], function() {
                            --n <= 0 && e();
                        });
                    }
                else e();
            }),
            (t.setLabels = function(t, e, o) {
                o && "EN" == t.name && (e = o);
                var n = t.getComponent(cc.Label);
                n && (n.string = e);
                for (var r = 0, a = t.children; r < a.length; r++) {
                    var i = a[r];
                    this.setLabels(i, e, o);
                }
            }),
            (t.加载剩余资源 = function(t) {
                var e = this;
                void 0 === t && (t = null);
                var o = this.getBundleNames(this.platformCtrl.subpackageNames, !0),
                    n = function() {
                        var o = e.getBundleNames(u.default.bundleNames, !0),
                            n = function() {
                                e.剩余资源加载完毕 ? (e.剩余资源加载完毕(t), (e.剩余资源加载完毕 = null)) : t && t();
                            };
                        o ? e.loadBundles(o, n) : n();
                    };
                o ? this.platformCtrl.loadSubpackages(o, n) : n();
            }),
            (t.check = function(t, e) {
                for (var o = 0, n = t; o < n.length; o++) {
                    var r = n[o];
                    if (-1 == this.oks.indexOf(r)) return;
                }
                e && e();
            }),
            (t.loadDirsAndGetAssetsByPath = function(t, e, o) {
                var n = this;
                return new Promise(function(r, a) {
                    n.loadDirs(t, e, function(t, e) {
                        o || (o = {});
                        for (var n = -1, a = 0, i = t; a < i.length; a++) {
                            var s = i[a];
                            o[e[++n]] = s;
                        }
                        r(o);
                    });
                });
            }),
            (t.loadDirs = function(t, e, o) {
                v.default.start("加载目录" + t);
                for (
                    var n = t.split(","),
                        r = n.length,
                        a = new Array(),
                        i = new Array(),
                        s = function(n, s) {
                            n.loadDir(s, e, function(e, s) {
                                for (var c = 0, l = s; c < l.length; c++) {
                                    var u = l[c];
                                    a.push(u), i.push(n.getAssetInfo(u._uuid).path);
                                }
                                --r <= 0 && (v.default.end("加载目录" + t), o(a, i));
                            });
                        },
                        c = 0,
                        l = n; c < l.length; c++
                ) {
                    var u = l[c],
                        p = u.match(/^([^\/]+)(?:\/(.*))?$/);
                    if (p) {
                        var f = cc.assetManager.getBundle(p[1]);
                        f ? s(f, p[2] || "") : console.error("木有 bundle：" + u);
                    } else console.error("loadDir 匹配失败：" + u);
                }
            }),
            (t.ok = function(t) {
                this.oks.push(t);
                this.oks.length;
                this.oks.length >= 7 && (v.default.end("初始化"), this.onInitComplete(), (this.onInitComplete = null));
            }),
            (t.居中 = function() {
                this.container.convertToWorldSpaceAR(this.n2n_p0, this.n2n_tmp),
                    (this.container.x += u.default.stageWid / 2 - this.n2n_tmp.x),
                    (this.container.y += u.default.stageHei / 2 - this.n2n_tmp.y),
                    this.adjustLoadingInfos && this.adjustLoadingInfos();
            }),
            (t.showFakeFriend = function() {
                if ("调试" == this.platformType || this.popups.getPopup(z.FakeFriend).odc) {
                    if (
                        ++this.userStorage.系统每天随机指派好友送温暖Index <
                        ut.DatasManager.系统每天随机指派好友送温暖.length &&
                        ut.DatasManager.系统每天随机指派好友送温暖[this.userStorage.系统每天随机指派好友送温暖Index]
                    )
                        return this.popups.show(z.FakeFriend), !0;
                    this.userStorage.setDirty();
                }
                return !1;
            }),
            (t.胜利视频倍数 = function() {
                return u.default.guideAllComplete() ?
                    (++this.胜利视频倍数Index >= ut.DatasManager.胜利视频倍数.length && (this.胜利视频倍数Index = 0),
                        ut.DatasManager.胜利视频倍数[this.胜利视频倍数Index]) :
                    ut.DatasManager.胜利视频倍数[0];
            }),
            (t.有可马上显示的横幅 = function() {
                return (!(!this.platformCtrl.bannerAdCtrl || !this.platformCtrl.bannerAdCtrl.可显示()) ||
                    !(!this.platformCtrl.gameBannerAdCtrl || !this.platformCtrl.gameBannerAdCtrl.可显示()) ||
                    !(!this.platformCtrl.bannerCustomAdCtrl || !this.platformCtrl.bannerCustomAdCtrl.可显示()) ||
                    !!(ut.DatasManager.误触出视频横幅 && ut.DatasManager.显示视频横幅 && this.rewardBanner)
                );
            }),
            (t.宝箱 = function() {
                return (!ut.DatasManager.a &&
                    !(ut.DatasManager.误触关 || (this.userStorage && this.userStorage.误触黑)) &&
                    (!ut.DatasManager.使用评分机制 || "劣质用户" == nt.scores.level()) &&
                    t._胜利宝箱 &&
                    t._胜利宝箱.indexOf(1) > -1
                );
            }),
            (t.出兵宝箱 = function() {
                return this.宝箱() && this.有可马上显示的横幅() && u.default.guideAllComplete();
            }),
            (t.胜利宝箱 = function() {
                return (!!(this.宝箱() && this.有可马上显示的横幅() && u.default.guideAllComplete()) &&
                    (++this.胜利宝箱Index >= t._胜利宝箱.length && (this.胜利宝箱Index = 0),
                        (this.刚点过胜利宝箱 = !!t._胜利宝箱[this.胜利宝箱Index]))
                );
            }),
            (t.显示胜利宝箱 = function(t, e, o) {
                if (e && this.胜利宝箱()) {
                    var n = this.popups.show(Z.ClickClick);
                    n.setTitle(t), (n.callback = o);
                } else o && o();
            }),
            (t.显示一次性礼包宝箱 = function(t, e) {
                if (this.宝箱() && this.有可马上显示的横幅()) {
                    var o = this.popups.show(Z.ClickClick);
                    return o.setTitle(t), (o.callback = e), !0;
                }
                return !1;
            }),
            (t.进入游戏 = function(e) {
                var o = this;
                if (!this.已调用进入游戏) {
                    if (
                        (tt.default.测速(tt.default.测速s.menu),
                            (this.已调用进入游戏 = !0),
                            this.gameHints.clear(),
                            (this.gameHints = null),
                            (this.可以进入游戏 = e),
                            ut.DatasManager.红包)
                    )
                        if (t.userStorage.七日红包已引导跳转);
                        else if (t.popups.getPopup(c.QiriHongbao).items)
                        return (
                            (t.userStorage.七日红包已引导跳转 = !0),
                            t.userStorage.setDirty(),
                            void(t.popups.show(s.QiriHongbaoJump).onHide = function() {
                                o.真的进入游戏();
                            })
                        );
                    this.真的进入游戏();
                }
            }),
            (t.真的进入游戏 = function() {
                this.platformCtrl.进入游戏(),
                    v.default.clear(),
                    (this.loadingInfos = null),
                    (this.adjustLoadingInfos = null),
                    this.local_userStorageTimes > 0 || this.online_userStorageTimes > 0 || this.加载剩余资源(),
                    this.platformCtrl.dd(et.dd.enter),
                    this.可以进入游戏(),
                    (this.可以进入游戏 = null);
            }),
            (t.进入主界面 = function(t, e, o) {
                var n = this;
                if (
                    (void 0 === t && (t = null),
                        void 0 === e && (e = !0),
                        void 0 === o && (o = null),
                        u.default.guideAllComplete())
                )
                    if (
                        ((this.当前在主界面 = !0),
                            this.platformCtrl.显示一键添加到我的小程序(),
                            this.进入主界面要干的各种事(o))
                    );
                    else if (this.platformCtrl.显示进主界面宝箱 && t) {
                    var r = void 0;
                    if (
                        (this.刚点过胜利宝箱 ? ((this.刚点过胜利宝箱 = !1), (r = !1)) : (r = !0),
                            this.显示进主界面宝箱Time > 0 || (this.显示进主界面宝箱Time = new Date().getTime()),
                            r)
                    ) {
                        var a = new Date().getTime();
                        a - this.显示进主界面宝箱Time > 1e3 * ut.DatasManager.显示进主界面宝箱间隔 &&
                            this.显示胜利宝箱(t, e, function() {
                                n.显示进主界面宝箱Time = a;
                            });
                    }
                }
            }),
            (t.进入主界面要干的各种事 = function(t) {
                var e = this;
                return (!!this.platformCtrl.在主界面处理的LaunchOption() ||
                    (this.首次弹出好友助力 &&
                        ((this.首次弹出好友助力 = !1),
                            this.platformCtrl.显示好友助力 && !this.userStorage.已自动弹出好友助力) ?
                        ((this.userStorage.已自动弹出好友助力 = !0),
                            this.userStorage.setDirty(),
                            (this.popups.show(K.FriendHelp).onHide = function() {
                                e.进入主界面要干的各种事(t);
                            }), !0) :
                        !(!this.首次弹出签到 ||
                            ((this.首次弹出签到 = !1), !u.default.显示七日签到(function() {
                                e.进入主界面要干的各种事(t);
                            }))
                        ) ||
                        !!this.showFakeFriend() ||
                        (t && t(), !1))
                );
            }),
            (t.离开主界面 = function() {
                this.当前在主界面 = !1;
            }),
            (t.getCPBComplete = function() {
                this.platformCtrl.cpbConfig &&
                    (this.initBottomCPBs(),
                        this.initRewardBanner(),
                        this.initGrid9CPB(),
                        this.init开始CPB(),
                        this.initWaterfall(),
                        this.initChouti(),
                        this.platformCtrl.已进入游戏 ||
                        (k.TableRules.pause(),
                            k.TableRules.单个CPBs.pause(),
                            k.TableRules.resume(),
                            k.TableRules.单个CPBs.resume()),
                        this.loadingInfos && this.loadingInfos.node.setSiblingIndex(this.container.childrenCount),
                        this.toast.node.setSiblingIndex(this.container.childrenCount));
            }),
            (t.getRect = function(t, e, o) {
                return (
                    t ?
                    this.putArea100(t.dx, t.dy, t.offsetX, t.offsetY, e, o) :
                    (console.error("no rule"), this.putArea100(0, 0, 0, 0, e, o)),
                    this.getDeviceRect(this.area100)
                );
            }),
            (t.getWH = function(t, e) {
                this.putArea100(0, 0, 0, 0, t, e);
                var o = this.getDeviceRect(this.area100);
                return [o[2], o[3]];
            }),
            (t.getPos = function(t, e, o, n, r, a) {
                return (
                    this.putArea100(t.dx, t.dy, t.offsetX, t.offsetY, o, n),
                    this.p0n2n(this.area100, e), [this.n2n_out.x + r, this.n2n_out.y + a]
                );
            }),
            (t.putArea100 = function(t, e, o, n, r, a) {
                (this.area100.width = r),
                (this.area100.height = a),
                (this.area100.x = -r / 2 + ((u.default.swid - r) / 2) * t + o),
                (this.area100.y = -(-a / 2 + ((u.default.shei - a) / 2) * e + n)),
                1 == e && (this.area100.y -= this.纵向安全边距);
            }),
            (t._showBanner = function(e, o) {
                for (var r = this, a = [], i = 2; i < arguments.length; i++) a[i - 2] = arguments[i];
                if (o < a.length) {
                    var s = a[o];
                    s
                        ?
                        (s.show(e, function(i) {
                                t.platformCtrl.dd_showBannerCallback(e.名称, s.adId, i),
                                    i || r._showBanner.apply(r, n([e, ++o], a));
                            }),
                            t.platformCtrl.dd_showBanner(e.名称, s.adId)) :
                        this._showBanner.apply(this, n([e, ++o], a));
                } else
                    e.误触 ?
                    ut.DatasManager.误触出视频横幅 ?
                    this._showRewardBanner(e) :
                    "调试" == this.platformType && this.showBottomCPBsOrRewardBanner(e) :
                    this.showBottomCPBsOrRewardBanner(e);
            }),
            (t.initBottomCPBs = function() {
                (this.bottomCPBs = this.prefabs.instantiate("BottomCPBs").getComponent(f.default)),
                this.container.addChild(this.bottomCPBs.node),
                    this.bottomCPBs.init();
            }),
            (t.initRewardBanner = function() {
                (this.rewardBanner = this.prefabs.instantiate("RewardBanner").getComponent(at.default)),
                this.container.addChild(this.rewardBanner.node),
                    this.rewardBanner.init();
            }),
            (t.showBottomCPBsOrRewardBanner = function(t) {
                ut.DatasManager.优先显示视频横幅 ?
                    this._showRewardBanner(t) || this._showBottomCPBs(t) :
                    this._showBottomCPBs(t) || this._showRewardBanner(t);
            }),
            (t._showBottomCPBs = function(t) {
                var e;
                if (ut.DatasManager.失败显示CPA && this.bottomCPBs)
                    return (
                        this.platformCtrl.dd_showBottomCPBs(t.名称),
                        (e = this.getPos(
                            t,
                            this.container,
                            this.bottomCPBs.node.width,
                            this.bottomCPBs.node.height,
                            0,
                            0
                        )),
                        (this.bottomCPBs.node.x = e[0]),
                        (this.bottomCPBs.node.y = e[1]),
                        (this.bottomCPBs.node.active = !0),
                        this.bottomCPBs.refresh(), !0
                    );
            }),
            (t._showRewardBanner = function(t) {
                var e;
                if (ut.DatasManager.显示视频横幅 && this.rewardBanner)
                    return (
                        (e = this.getPos(
                            t,
                            this.container,
                            this.rewardBanner.node.width,
                            this.rewardBanner.node.height,
                            0,
                            0
                        )),
                        (this.rewardBanner.node.x = e[0]),
                        (this.rewardBanner.node.y = e[1]),
                        (this.rewardBanner.node.active = !0),
                        this.rewardBanner.show(), !0
                    );
            }),
            (t.hideBottomCPBsOrRewardBanner = function() {
                this.bottomCPBs && (this.bottomCPBs.node.active = !1),
                    this.rewardBanner && (this.rewardBanner.node.active = !1);
            }),
            (t.getSingleCPB = function(e) {
                if (t.platformCtrl.cpbConfig) {
                    var o = this.prefabs.instantiate("CPBIcon").getComponent(d.default);
                    return (
                        o.init(this.platformCtrl.cpbConfig[e.CPBIndices || "全部"], !1, e.CPA打开成功给金币, !0, null),
                        e.颤抖 && o.shake(),
                        e.显示名字 || o.hideTxt(),
                        o
                    );
                }
                return null;
            }),
            (t.initSingleCPB = function(e) {
                var o,
                    n = this.getSingleCPB(e);
                return (
                    n &&
                    (e.target.addChild(n.node),
                        (o = t.getPos(e, e.target, 100, e.显示名字 ? 132 : 100, 50, -50)),
                        (n.node.x = o[0]),
                        (n.node.y = o[1])),
                    n
                );
            }),
            (t.showBlockAds = function(t, e) {
                if (this.platformCtrl.blockAdCtrls) {
                    var o = 2;
                    this.platformCtrl.blockAdCtrls[0].show(t, function(t) {
                        t || (--o <= 0 && e && e());
                    });
                    var n = {};
                    for (var r in t) n[r] = t[r];
                    (n.dx *= -1),
                    (n.offsetX *= -1),
                    this.platformCtrl.blockAdCtrls[1].show(n, function(t) {
                        t || (--o <= 0 && e && e());
                    });
                } else e && e();
            }),
            (t.hideBlockAds = function() {
                this.platformCtrl.blockAdCtrls &&
                    (this.platformCtrl.blockAdCtrls[0].hide(), this.platformCtrl.blockAdCtrls[1].hide());
            }),
            (t.init开始CPB = function() {
                (this.startCPB1 = this.prefabs.instantiate("开始CPB").getComponent(F.default)),
                (this.startCPB2 = this.prefabs.instantiate("开始CPB").getComponent(F.default)),
                this.container.addChild(this.startCPB1.node),
                    this.container.addChild(this.startCPB2.node),
                    this.startCPB1.init(
                        this.platformCtrl.cpbConfig.推荐1[0],
                        this.platformCtrl.cpbConfig.推荐1[1],
                        this.platformCtrl.cpbConfig.除推荐1,
                        this.platformCtrl.cpbConfig.除推荐1
                    ),
                    this.startCPB2.init(
                        this.platformCtrl.cpbConfig.推荐1[2],
                        this.platformCtrl.cpbConfig.推荐1[3],
                        this.platformCtrl.cpbConfig.除推荐1,
                        this.platformCtrl.cpbConfig.除推荐1
                    ),
                    (this.startCPB1.node.active = !1),
                    (this.startCPB2.node.active = !1);
            }),
            (t.show开始CPB = function(t) {
                if (this.startCPB1 && this.startCPB2) {
                    var e = this.getPos(t, this.container, 110, 610, 55, 0);
                    (this.startCPB1.node.x = e[0]),
                    (this.startCPB1.node.y = e[1]),
                    (this.startCPB2.node.x = -e[0]),
                    (this.startCPB2.node.y = e[1]),
                    (this.startCPB1.node.active = !0),
                    (this.startCPB2.node.active = !0);
                }
            }),
            (t.hide开始CPB = function() {
                this.startCPB1 &&
                    this.startCPB2 &&
                    ((this.startCPB1.node.active = !1), (this.startCPB2.node.active = !1));
            }),
            (t.initGrid9CPB = function() {
                (this.grid9CPB = this.prefabs.instantiate("Grid9CPB").getComponent(g.default)),
                this.container.addChild(this.grid9CPB.node),
                    this.grid9CPB.init();
            }),
            (t.initWaterfall = function() {
                var e = Math.ceil(u.default.stageWid / 160),
                    o = Math.ceil(u.default.stageHei / 160);
                t.platformCtrl.获取n个重复随机CPB(e * o * 2) &&
                    ((this.waterfall = this.prefabs.instantiate("Waterfall").getComponent(j.default)),
                        this.container.addChild(this.waterfall.node),
                        this.waterfall.init(e, o, 160),
                        (this.waterfall.node.x = -u.default.swid / 2),
                        (this.waterfall.node.y = u.default.stageHei / 2));
            }),
            (t.initChouti = function() {
                (this.chouti = this.prefabs.instantiate("侧拉抽屉").getComponent(V.default)),
                this.container.addChild(this.chouti.node),
                    this.chouti.init(),
                    (this.chouti.node.x = -u.default.swid / 2),
                    (this.chouti.node.y = u.default.stageHei / 2);
            }),
            (t.随机跳一个CPA = function() {
                t.userStorage.误触黑 ||
                    (ut.DatasManager.随机跳一个CPA &&
                        t.platformCtrl.openCPB(
                            null,
                            t.platformCtrl.cpbConfig.cpbs[
                                Math.floor(Math.random() * t.platformCtrl.cpbConfig.cpbs.length)
                            ], !1, !1, !1, !1,
                            null
                        ));
            }),
            (t.init节日活动 = function(t) {
                (this.节日活动按钮 = this.prefabs.instantiate("节日活动按钮").getComponent(r.default)),
                t.addChild(this.节日活动按钮.node),
                    this.节日活动按钮.init();
            }),
            (t.init弹窗活动 = function(t) {
                (this.弹窗活动按钮 = this.prefabs.instantiate("弹窗活动按钮").getComponent(i.default)),
                t.addChild(this.弹窗活动按钮.node),
                    this.弹窗活动按钮.init();
            }),
            (t.init七日红包 = function(t) {
                (this.七日红包按钮 = this.prefabs.instantiate("七日红包按钮").getComponent(l.default)),
                t.addChild(this.七日红包按钮.node),
                    this.七日红包按钮.init();
            }),
            (t.类原生和原生 = function() {
                switch (this.platformType) {
                    case "快手小游戏":
                    case "OPPO小游戏":
                    case "VIVO小游戏":
                    case "华为快游戏":
                    case "Native0":
                    case "AdTiming":
                    case "OHaYoo":
                    case "OHaYoo海外":
                    case "TapTap":
                    case "Tencent":
                    case "233乐园":
                    case "小米":
                    case "4399":
                    case "快手App":
                    case "OPPOApp":
                    case "VIVOApp":
                        return !0;
                }
                return !1;
            }),
            (t.updateShareMoneyTime = function() {
                (this.shareMoneyStartTime = new Date().getTime()),
                (this.shareMoneyTime = Math.floor(
                    1e3 *
                    (ut.DatasManager.看视频领金币间隔[0] +
                        Math.random() *
                        (ut.DatasManager.看视频领金币间隔[1] - ut.DatasManager.看视频领金币间隔[0]))
                ));
            }),
            (t.normal = function(t) {
                t.setMaterial(0, cc.MaterialVariant.createWithBuiltin("2d-sprite", t));
            }),
            (t.grey = function(t) {
                t.setMaterial(0, cc.MaterialVariant.createWithBuiltin("2d-gray-sprite", t));
            }),
            (t.normalAll = function(t) {
                var e = t.getComponent(cc.RenderComponent);
                e && this.normal(e);
                for (var o = 0, n = t.children; o < n.length; o++) {
                    var r = n[o];
                    this.normalAll(r);
                }
            }),
            (t.greyAll = function(t) {
                var e = t.getComponent(cc.RenderComponent);
                e && this.grey(e);
                for (var o = 0, n = t.children; o < n.length; o++) {
                    var r = n[o];
                    this.greyAll(r);
                }
            }),
            (t.getDDs = function(t, e) {
                var o = Math.floor(t / e);
                o < 1 && ((o = 1), (e = t));
                for (var n = new Array(), r = 0; r < e; r++) n.push(o);
                var a = o * e - t;
                if (a < 0) {
                    a *= -1;
                    for (r = -1; a--;) n[++r]++;
                }
                return n;
            }),
            (t.formatTime = function(t, e, o) {
                void 0 === e && (e = !1), void 0 === o && (o = !1);
                var n = "";
                if (o) {
                    var r = Math.floor(t / 86400);
                    r > 0 && (n += r + "天 "), (t -= 86400 * r);
                }
                if (e) {
                    var a = Math.floor(t / 3600);
                    (n += o ? (100 + a).toString().substr(1) + ":" : a + ":"), (t -= 3600 * a);
                }
                var i = Math.floor(t / 60);
                return (t -= 60 * i), (n += (100 + i).toString().substr(1) + ":" + (100 + t).toString().substr(1));
            }),
            (t.formatMoney = function(t) {
                return t < 1e3 ?
                    t.toString() :
                    t < 1e6 ?
                    Math.floor(t / 100) / 10 + "K" :
                    t < 1e9 ?
                    Math.floor(t / 1e5) / 10 + "M" :
                    t < 1e12 ?
                    Math.floor(t / 1e8) / 10 + "G" :
                    Math.floor(t / 1e11) / 10 + "T";
            }),
            (t.playAnimation = function(t, e, o) {
                return t.setAnimation(0, e, o);
            }),
            (t.getSkinNames = function(t, e) {
                var o = new Array();
                if (t.skeletonData.skeletonJson.skins)
                    for (var n = 0, r = t.skeletonData.skeletonJson.skins; n < r.length; n++) {
                        var a = r[n];
                        o.push(a.name);
                    }
                if (e) {
                    var i = o.indexOf("default");
                    i > -1 && o.splice(i, 1);
                }
                return o.sort(), o;
            }),
            (t.getSkinNamesOld = function(t) {
                var e = new Array();
                for (var o in t.skeletonData.skeletonJson.skins) e.push(o);
                return e.sort(), e;
            }),
            (t.getAniNames = function(t) {
                var e = new Array();
                for (var o in t.skeletonData.skeletonJson.animations) e.push(o);
                return e.sort(), e;
            }),
            (t.getDuration = function(t) {
                var e = t._state;
                return Math.round(1e4 * e.tracks[0].animation.duration) / 1e4;
            }),
            (t.disorder = function(t) {
                for (var e = t.length; e--;) {
                    var o = Math.floor(Math.random() * t.length),
                        n = t[e];
                    (t[e] = t[o]), (t[o] = n);
                }
            }),
            (t.notInOrTrue = function(t, e) {
                return !(e in t) || t[e];
            }),
            (t.p0n2n = function(t, e) {
                t.convertToWorldSpaceAR(this.n2n_p0, this.n2n_tmp), e.convertToNodeSpaceAR(this.n2n_tmp, this.n2n_out);
            }),
            (t.p100n2n = function(t, e) {
                t.convertToWorldSpaceAR(this.n2n_p100, this.n2n_tmp),
                    e.convertToNodeSpaceAR(this.n2n_tmp, this.n2n_out);
            }),
            (t.aabb = function(t, e) {
                return !(!t || !e) && !(t[0] > e[2] || e[0] > t[2] || t[1] > e[3] || e[1] > t[3]);
            }),
            (t.getAABB = function(t, e) {
                return t && e && this.aabb(t, e) ? [
                        t[0] > e[0] ? t[0] : e[0],
                        t[1] > e[1] ? t[1] : e[1],
                        t[2] < e[2] ? t[2] : e[2],
                        t[3] < e[3] ? t[3] : e[3]
                    ] :
                    null;
            }),
            (t.base64Encode = function(t) {
                for (var e = new ArrayBuffer(2 * t.length), o = new Uint16Array(e), n = t.length, r = 0; r < n; r++)
                    o[r] = t.charCodeAt(r);
                return p.default.encode(e);
            }),
            (t.base64Decode = function(t) {
                var e = p.default.decode(t);
                return String.fromCharCode.apply(null, new Uint16Array(e));
            }),
            (t.charCodeSum = function(t) {
                if (t) {
                    for (var e = 0, o = t.length; o--;) e += t.charCodeAt(o);
                    return e;
                }
                return 0;
            }),
            (t.getDeviceRect = function(t) {
                var e = t.getBoundingBoxToWorld();
                return this.platformCtrl.肥屏 ? [
                    Math.round(e.x * this.platformCtrl.物理屏幕和画布的比例),
                    Math.round(
                        this.platformCtrl.screenHeight - (e.y + e.height) * this.platformCtrl.物理屏幕和画布的比例
                    ),
                    Math.round(e.width * this.platformCtrl.物理屏幕和画布的比例),
                    Math.round(e.height * this.platformCtrl.物理屏幕和画布的比例)
                ] : [
                    Math.round(e.x * this.platformCtrl.物理屏幕和画布的比例),
                    Math.round((u.default.stageHei - (e.y + e.height)) * this.platformCtrl.物理屏幕和画布的比例),
                    Math.round(e.width * this.platformCtrl.物理屏幕和画布的比例),
                    Math.round(e.height * this.platformCtrl.物理屏幕和画布的比例)
                ];
            }),
            (t.调整视频按钮们 = function(t, e, o) {
                var n = o.__btnArgs0__;
                n || (n = o.__btnArgs0__ = { x: o.x, y: o.y, w: o.width, h: o.height }),
                    (t.active = !0),
                    (e.active = !1),
                    (o.active = !0),
                    (o.x = n.x),
                    (o.y = n.y),
                    (o.width = n.w),
                    (o.height = n.h),
                    ut.DatasManager.a ||
                    (u.default.guideAllComplete() &&
                        ut.DatasManager.调整视频按钮们 &&
                        ((t.active = !1),
                            (e.active = !0),
                            (o.active = !0),
                            (o.x = e.x),
                            (o.y = e.y - 50),
                            (o.width = 1.2 * n.w),
                            (o.height = 1.2 * n.h)));
            }),
            (t.领取礼包码 = function(e, o) {
                (e = e.replace(/\s+/g, "")) ?
                ((t.userStorage.lastGiftCode = e),
                    t.userStorage.setDirty(), !!/^[a-zA-Z0-9]+$/.test(e) && t.userStorage.giftCodes.indexOf(e) > -1 ?
                    t.platformCtrl.toast("此礼包码已被使用过！") :
                    ((t.popups.disable.active = !0),
                        t.platformCtrl.getGift(
                            e,
                            function(n) {
                                if (((t.popups.disable.active = !1), n.info)) {
                                    var r = n.info.match(/^\+(.+?)(\d+)([KMGT])?$/);
                                    if (r) {
                                        var a = parseInt(r[2]);
                                        switch (r[3]) {
                                            case "K":
                                                a *= 1e3;
                                                break;
                                            case "M":
                                                a *= 1e6;
                                                break;
                                            case "G":
                                                a *= 1e9;
                                                break;
                                            case "T":
                                                a *= 1e12;
                                        }
                                        u.default.addMoney(r[1], a, "礼包码", o, null),
                                            t.userStorage.giftCodes.push(e),
                                            t.userStorage.setDirty();
                                    } else ct.GiftCode[n.info] ? ct.GiftCode[n.info]() : lt.AVM1.run(n.info);
                                } else t.platformCtrl.toast(n.message || "领取失败！");
                            },
                            function() {
                                (t.popups.disable.active = !1), t.platformCtrl.toast("领取出错！");
                            }
                        ))) :
                t.platformCtrl.toast("礼包码不能为空");
            }),
            (t.客服信息 = "客服 - 小羽毛\n微信号：xunxunxunvan"),
            (t.显示进主界面宝箱Time = 0),
            (t.首次弹出好友助力 = !0),
            (t.首次弹出签到 = !0),
            (t.显示推荐Icon = function(e) {
                t.platformCtrl.gameIconAdCtrl && t.platformCtrl.gameIconAdCtrl.show(e);
            }),
            (t.隐藏推荐Icon = function() {
                t.platformCtrl.gameIconAdCtrl && t.platformCtrl.gameIconAdCtrl.hide();
            }),
            (t.显示横幅 = function(e) {
                (ut.DatasManager.使用评分机制 && "优质用户" == nt.scores.level()) ||
                t._showBanner(
                    e,
                    0,
                    t.platformCtrl.bannerAdCtrl,
                    t.platformCtrl.gameBannerAdCtrl,
                    t.platformCtrl.bannerCustomAdCtrl
                );
            }),
            (t.隐藏横幅 = function() {
                t.platformCtrl.bannerAdCtrl && t.platformCtrl.bannerAdCtrl.hide(),
                    t.platformCtrl.gameBannerAdCtrl && t.platformCtrl.gameBannerAdCtrl.hide(),
                    t.platformCtrl.bannerCustomAdCtrl && t.platformCtrl.bannerCustomAdCtrl.hide(),
                    t.hideBottomCPBsOrRewardBanner();
            }),
            (t.显示推荐组件横幅 = function(e) {
                (ut.DatasManager.使用评分机制 && "优质用户" == nt.scores.level()) ||
                t._showBanner(
                    e,
                    0,
                    t.platformCtrl.gameBannerAdCtrl,
                    t.platformCtrl.bannerAdCtrl,
                    t.platformCtrl.bannerCustomAdCtrl
                );
            }),
            (t.隐藏推荐组件横幅 = t.隐藏横幅),
            (t.显示横幅原生模版广告 = function(e) {
                (ut.DatasManager.使用评分机制 && "优质用户" == nt.scores.level()) ||
                t._showBanner(
                    e,
                    0,
                    t.platformCtrl.bannerCustomAdCtrl,
                    t.platformCtrl.bannerAdCtrl,
                    t.platformCtrl.gameBannerAdCtrl
                );
            }),
            (t.隐藏横幅原生模版广告 = t.隐藏横幅),
            (t.单格子原生模版s = new Array()),
            (t.显示单格子原生模版 = function(e) {
                if (t.单格子原生模版s[e.索引]) console.error(e.规则 + " 单格子原生模版广告重复展示：" + e.索引);
                else {
                    var o = (t.单格子原生模版s[e.索引] = {});
                    t.platformCtrl.customAdCtrls ?
                        ((o.ctrl = t.platformCtrl.customAdCtrls[e.索引]),
                            o.ctrl ?
                            o.ctrl.show(e, function(n) {
                                n || (ut.DatasManager.失败显示CPA && (o.icon = t.initSingleCPB(e)));
                            }) :
                            console.error(e.规则 + " 单格子原生模版广告索引超出范围：" + e.索引)) :
                        ut.DatasManager.失败显示CPA && (o.icon = t.initSingleCPB(e));
                }
            }),
            (t.隐藏单格子原生模版 = function(e) {
                var o = t.单格子原生模版s[e.索引];
                o
                    ?
                    (o.ctrl && o.ctrl.hide(), o.icon && o.icon.clear(), (t.单格子原生模版s[e.索引] = null)) :
                    console.error(e.规则 + " 木有：" + e.索引);
            }),
            (t.显示原生 = function(e) {
                t.platformCtrl.nativeAdCtrl ?
                    t.platformCtrl.nativeAdCtrl.show(e, function(o) {
                        o || (ut.DatasManager.失败显示CPA && (t.原生失败显示CPBIcon = t.initSingleCPB(e)));
                    }) :
                    ut.DatasManager.失败显示CPA && (t.原生失败显示CPBIcon = t.initSingleCPB(e));
            }),
            (t.隐藏原生 = function() {
                t.platformCtrl.nativeAdCtrl && t.platformCtrl.nativeAdCtrl.hide(),
                    t.原生失败显示CPBIcon && (t.原生失败显示CPBIcon.clear(), (t.原生失败显示CPBIcon = null));
            }),
            (t.单个CPBs = {}),
            (t.显示单个CPB = function(e) {
                t.单个CPBs[e.ruleIndex] = t.initSingleCPB(e);
            }),
            (t.隐藏单个CPB = function(e) {
                var o = t.单个CPBs[e.ruleIndex];
                o && (o.clear(), delete t.单个CPBs[e.ruleIndex]);
            }),
            (t.显示对联 = function(e) {
                if (
                    ut.DatasManager.对联优先显示CPA &&
                    ut.DatasManager.失败显示CPA &&
                    t.platformCtrl.cpbConfig &&
                    (t.platformCtrl.已进入游戏 || t.platformCtrl.cpbConfig.加载页显示)
                )
                    return t.hideBlockAds(), void t.show开始CPB(e);
                t.showBlockAds(e, function() {
                    t.hideBlockAds(),
                        ut.DatasManager.失败显示CPA &&
                        t.platformCtrl.cpbConfig &&
                        (t.platformCtrl.已进入游戏 || t.platformCtrl.cpbConfig.加载页显示) &&
                        t.show开始CPB(e);
                });
            }),
            (t.隐藏对联 = function() {
                t.hide开始CPB(), t.hideBlockAds();
            }),
            (t.显示九宫格 = function(e) {
                var o;
                t.grid9CPB &&
                    (t.grid9CPB.show(e),
                        (o = t.getPos(e, t.container, t.grid9CPB.bg.width, t.grid9CPB.bg.height, 0, 0)),
                        (t.grid9CPB.node.x = o[0]),
                        (t.grid9CPB.node.y = o[1]),
                        (t.grid9CPB.node.active = !0));
            }),
            (t.隐藏九宫格 = function() {
                t.grid9CPB && t.grid9CPB.hide();
            }),
            (t.显示插屏 = function(e) {
                t.platformCtrl.insertAdCtrl && t.platformCtrl.insertAdCtrl.show();
            }),
            (t.显示推荐组件插屏 = function(e) {
                t.platformCtrl.gamePortalCtrl && t.platformCtrl.gamePortalCtrl.show();
            }),
            (t.显示瀑布 = function() {
                u.default.guideAllComplete() && t.waterfall && t.waterfall.autoShow();
            }),
            (t.显示瀑布按钮 = function(e) {
                t.waterfall &&
                    ((t.waterfall.lachu1.y = t.getPos(e, t.container, 38, 90, 19, -45)[1] - t.waterfall.node.y),
                        (t.waterfall.lachu1.active = !0),
                        t.waterfall.refresh());
            }),
            (t.隐藏瀑布按钮 = function() {
                t.waterfall && (t.waterfall.lachu1.active = !1);
            }),
            (t.显示侧拉抽屉 = function(e) {
                t.chouti &&
                    ((t.chouti.lachu1.y = t.getPos(e, t.container, 38, 90, 19, -45)[1] - t.chouti.node.y),
                        (t.chouti.lachu1.active = !0),
                        (t.chouti.rule = e));
            }),
            (t.隐藏侧拉抽屉 = function() {
                t.chouti && (t.chouti.lachu1.active = !1);
            }),
            (t.显示节日活动 = function(e) {
                var o;
                ut.DatasManager.节日活动 &&
                    (t.init节日活动(e.target),
                        (o = t.getPos(e, e.target, 160, 90, 80, -45)),
                        (t.节日活动按钮.node.x = o[0]),
                        (t.节日活动按钮.node.y = o[1]));
            }),
            (t.隐藏节日活动 = function() {
                t.节日活动按钮 && (t.节日活动按钮.node.destroy(), (t.节日活动按钮 = null));
            }),
            (t.显示弹窗活动 = function(e) {
                var o;
                ut.DatasManager.弹窗活动 &&
                    (t.init弹窗活动(e.target),
                        (o = t.getPos(e, e.target, 160, 90, 80, -45)),
                        (t.弹窗活动按钮.node.x = o[0]),
                        (t.弹窗活动按钮.node.y = o[1]),
                        t.popups.getPopup(a.TanchuangHuodong).autoShow());
            }),
            (t.隐藏弹窗活动 = function() {
                t.弹窗活动按钮 && (t.弹窗活动按钮.node.destroy(), (t.弹窗活动按钮 = null));
            }),
            (t.显示七日红包 = function(e) {
                var o;
                ut.DatasManager.红包 &&
                    (t.init七日红包(e.target),
                        (o = t.getPos(e, e.target, 80, 80, 40, -40)),
                        (t.七日红包按钮.node.x = o[0]),
                        (t.七日红包按钮.node.y = o[1]));
            }),
            (t.隐藏七日红包 = function() {
                t.七日红包按钮 && (t.七日红包按钮.node.destroy(), (t.七日红包按钮 = null));
            }),
            t
        );
    })();
o.default = gt;